import Vue from 'vue'
import VueRouter from 'vue-router'
// import Top from '../view/top.vue'
import Fxyl from '../view/fxyl.vue'
import Gz from '../view/gz.vue'
import Sc from '../view/sc.vue'
import Wdyl from '../view/wdyl.vue'
import Ylr from '../view/ylr.vue'
import Xzkhd from '../view/xzkhd.vue'
import One from '../view2/one.vue'
import Two from '../view2/two.vue'
import Three from '../view2/three.vue'
import Four from '../view2/four.vue'

Vue.use(VueRouter)
const router = new VueRouter({
  routes: [
    {
      path: '/',
      component: Fxyl,
      children: [
        {
          path: 'one',
          component:One
        },
        {
          path: 'two',
          component:Two
        },
        {
          path: 'three',
          component:Three
        },
        {
          path: 'four',
          component:Four
        },
      ]
    },
    {
      path: '/gz',
      component: Gz,
    },
    {
      path: '/sc',
      component: Sc,
    },
    {
      path: '/wdyl',
      component: Wdyl,
    },
    {
      path: '/xzkhd',
      component: Xzkhd,
    },
    {
      path: '/ylr',
      component: Ylr,
    },
    // {
    //   path: '/',
    //   component: Top,
    //   children: [
    //     {
    //       path: '/fxyl',
    //       component: Fxyl,
    //     },
    //     {
    //       path: '/gz',
    //       component: Gz,
    //     },
    //     {
    //       path: '/sc',
    //       component: Sc,
    //     },
    //     {
    //       path: '/wdyl',
    //       component: Wdyl,
    //     },
    //     {
    //       path: '/ylr',
    //       component: Ylr,
    //     },
    //   ],
    // },
  ],
})
export default router
